package com.example.farmer.Entity;

public class PurchasePost {
    private int id;
    private String pushtype;//发布类型
    private String producttype;//货品分类
    private String productname;//货品名称
    private String need;//需求
    private String shipaddress; //发货地址
    private String period;//采购周期
    private String shippingaddress; //收货地址
    private String describe; //描述


    public PurchasePost(int id, String producttype, String productname, String need,
                        String period){
        this.id = id;
        this.producttype = producttype;
        this.productname = productname;
        this.need = need;
        this.period = period;
    }
    public PurchasePost(int id, String producttype, String productname, String need,
                       String shipaddress, String period, String shippingaddress,String describe){
        this.id = id;
        this.producttype = producttype;
        this.productname = productname;
        this.need = need;
        this.shipaddress = shipaddress;
        this.period = period;
        this.shippingaddress = shippingaddress;
        this.describe = describe;
    }
    public PurchasePost(int id, String productname, String need,
                        String shipaddress, String period, String shippingaddress,String describe){
        this.id = id;
        this.productname = productname;
        this.need = need;
        this.shipaddress = shipaddress;
        this.period = period;
        this.shippingaddress = shippingaddress;
        this.describe = describe;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPushtype() {
        return pushtype;
    }

    public void setPushtype(String pushtype) {
        this.pushtype = pushtype;
    }

    public String getProducttype() {
        return producttype;
    }

    public void setProducttype(String producttype) {
        this.producttype = producttype;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public String getNeed() {
        return need;
    }

    public void setNeed(String need) {
        this.need = need;
    }

    public String getShipaddress() {
        return shipaddress;
    }

    public void setShipaddress(String shipaddress) {
        this.shipaddress = shipaddress;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getShippingaddress() {
        return shippingaddress;
    }

    public void setShippingaddress(String shippingaddress) {
        this.shippingaddress = shippingaddress;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @Override
    public String toString() {
        return "PurchasePost{" +
                "id=" + id +
                ", pushtype='" + pushtype + '\'' +
                ", producttype='" + producttype + '\'' +
                ", productname='" + productname + '\'' +
                ", need='" + need + '\'' +
                ", shipaddress='" + shipaddress + '\'' +
                ", period='" + period + '\'' +
                ", shippingaddress='" + shippingaddress + '\'' +
                ", describe='" + describe + '\'' +
                '}';
    }
}
